package com.chalk.model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author glq
 * @since 2020-12-19
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_news")
@ApiModel(value="News对象", description="")
public class News implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "新闻资讯id")
    @TableId(value = "news_id", type = IdType.AUTO)
    @JsonProperty("newsId")
    private Integer newsId;

    @ApiModelProperty(value = "资讯标题")
    @JsonProperty("newsTitle")
    private String newsTitle;

    @ApiModelProperty(value = "资讯主图")
    @JsonProperty("newsImg")
    private String newsImg;

    @ApiModelProperty(value = "资讯内容")
    @JsonProperty("newsContent")
    private String newsContent;

    @ApiModelProperty(value = "资讯类型id")
    @JsonProperty("newsTypeId")
    private Integer newsTypeId;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0未删除 1已删除")
    @JsonProperty("isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;


}
